/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.jsrpc.bridge;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

/**
 *
 * @author krisada
 */
public class RemoveTagHandler extends TagSupport {
    private static final long serialVersionUID = 6184511466795393867L;

    @Override
    public int doStartTag() throws JspException {
        String pageId = (String)pageContext.getAttribute(Key.PAGE_ID);
        pageContext.getSession().removeAttribute(Key.REMOTE_REGISTER+"."+pageId);
        return super.doStartTag();
    }

    @Override
    public int doEndTag() throws JspException {
        return super.doEndTag();
    }
}
